
#ifndef __APP_PWM_H__
#define __APP_PWM_H__


/* Includes ------------------------------------------------------------------*/
/* Exported types ------------------------------------------------------------*/
typedef enum
{
	ePWM_CH1=0,
	ePWM_CH2,
	ePWM_CH3,
	ePWM_CH4,
	ePWM_MAX,

	ePWM_LEFT=ePWM_CH1,
	ePWM_RIGHT=ePWM_CH2,
	ePWM_BOTTOM=ePWM_CH3,
	ePWM_TOP=ePWM_CH4,
} PWM_TYPE;

/* Exported constants --------------------------------------------------------*/
/* Exported macro ------------------------------------------------------------*/
/* Exported define -----------------------------------------------------------*/
/* Exported functions ------------------------------------------------------- */
void Pwm_Init(u8 *pDefPwms);
u8 Pwm_Set(u8 pwm, u8 percent);	// 0 ~ 100

/* External variables --------------------------------------------------------*/


#endif /*__APP_PWM_H__*/

